projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b2d7c
)
tests: Verify that the pull error was from interruption
author
Colin Walters
<walters@verbum.org>
Mon, 6 Apr 2015 15:10:56 +0000
(11:10 -0400)
committer
Colin Walters
<walters@verbum.org>
Mon, 6 Apr 2015 18:33:16 +0000
(14:33 -0400)
While working on https://github.com/GNOME/ostree/pull/84 I wanted to
verify that nothing else was going wrong.
tests/test-pull-resume.sh
patch
|
blob
|
history
diff --git
a/tests/test-pull-resume.sh
b/tests/test-pull-resume.sh
index fcca8393f962be8eabde05f32ec403045925052f..e0732433143963eaa5c11532b3c43b9bb1a69b2a 100755
(executable)
--- a/
tests/test-pull-resume.sh
+++ b/
tests/test-pull-resume.sh
@@
-39,9
+39,10
@@
maxtries=`expr $maxtries \* 2`
for ((i = 0; i < $maxtries; i=i+1))
do
-if ${CMD_PREFIX} ostree --repo=repo pull origin main; then
- break;
-fi
+ if ${CMD_PREFIX} ostree --repo=repo pull origin main 2>err.log; then
+ break
+ fi
+ assert_file_has_content err.log 'error:.*Download incomplete'
done
if ${CMD_PREFIX} ostree --repo=repo fsck; then
echo "ok, pull succeeded!"